package com.yjt.gcss.gddw.modules.btOrganization;

import javax.annotation.Resource;

import org.hibernate.criterion.MatchMode;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.yjt.common.easyui.datagrid.DataGridDTO;
import com.yjt.common.easyui.datagrid.DataGridJsonDTO;
import com.yjt.gcss.gddw.common.bean.domain.BtOrganization;
import com.yjt.gcss.gddw.common.dao.BtOrganizationDao;

@Service(BtOrganizationService.BEAN_PACKAGE_NAME)
@Transactional(readOnly=true)
public class BtOrganizationService {

	public static final String BEAN_PACKAGE_NAME = "com.yjt.gcss.gddw.modules.btOrganization.BtOrganizationService";
	
	@Resource(name = BtOrganizationDao.BEAN_PACKAGE_NAME)
	private BtOrganizationDao btOrganizationDao;
	
	public DataGridJsonDTO query(DataGridDTO datagrid, BtOrganization queryModel) {
		return btOrganizationDao.getBeansByBeanForPager(queryModel, MatchMode.ANYWHERE, datagrid, true);
	}
}
